package cn.iocoder.yudao.framework.region.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/08/01
 */
@Data
public class AddressLiteBO {

    @Schema(description = "区县编码", example = "520102")
    @Pattern(regexp = "\\d{6}", message = "区县编码格式错误")
    private String countyCode;

    @SuppressWarnings("unused")
    @AssertTrue(message = "区县编码不能为空")
    public boolean validCountyCode() {
        return true;
    }

    @Schema(description = "详细地址", example = "花果园金融街5号驰通集团公司")
    private String detailAddress;

    @SuppressWarnings("unused")
    @AssertTrue(message = "详细地址不能为空")
    public boolean validDetailAddress() {
        return true;
    }

}
